package com.zhentao.apis.producer;

import com.zhentao.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Date 2024/3/27 10:04
 * @Author xdm
 **/
@FeignClient("producer")
public interface ProducerClientApi {

    @PostMapping("/user/add")
    public String add(@RequestBody UserDto userDto);

    @GetMapping("/user/list")
    public String list();
}
